|
|
|
|
Joined: Jan 2003
Posts: 338
Enthusiast
|
|
Enthusiast
Joined: Jan 2003
Posts: 338 |
I search hack for sending private messages for all users, or any groups. How to do it?
|
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
|
Addict
Joined: Apr 2002
Posts: 1,768 |
You don't want to do that, it's inefficient. 
|
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
|
Member
Joined: Apr 2001
Posts: 3,266 |
Very inefficient since users can turn off notification for PM and if they do not visit often they will never see it. EMAIL ALL USERS in admin panel is best way.
|
|
|
|
|
Joined: Jan 2003
Posts: 338
Enthusiast
|
|
Enthusiast
Joined: Jan 2003
Posts: 338 |
But my serwer hasn't installed email function 
|
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
|
Addict
Joined: Apr 2002
Posts: 1,768 |
If you really want to do this, you can see an example of sending a PM to a group in admin/derevokemod.php. Look for "Now inform all other Admins and mods". Refer to function send_message() in ubbt.inc.php for allowable values of the $Group parameter.
If you wanted to send to a group other than one of those groups, you would need to tweak the code.
The reason I said it was inefficient is because each copy of the PM is stored in the database for every user whom it's sent to.
|
|
|
|
|
Joined: Jan 2003
Posts: 338
Enthusiast
|
|
Enthusiast
Joined: Jan 2003
Posts: 338 |
I tried but without any positive result  How change change option chagne Email to All fo send Pm to all... (cosedemail.php file << executive command)
|
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Yeah, if you have 1000 members, it's like storing the same "post" in the Database 1000 times. The bigger the databases get the slower things eventually get. A couple of "bulk PMs" to a large user base could drastically slow down your forums. If you want certain groups to see an "announcement", then it's best to make a forum that only that group can see and make an announcement there. Then you only store the message once.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,825
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 2000
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 12
|
|
|
|
|
|